package com.ryh.dao;

import com.ryh.entity.LendingRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LendingRecordDao {
    List<LendingRecord> getLendingRecordsByReaderId(@Param("readerId") String readerId);

    List<LendingRecord> getLendingRecordsByBookId(@Param("bookId") String bookId);

    LendingRecord getLendingRecordById(@Param("recordId") String recordId);

    void addLendingRecord(LendingRecord lendingRecord);

    void updateLendingRecord(LendingRecord lendingRecord);

    void deleteLendingRecord(@Param("recordId") String recordId);
}